#ifndef _CCRACKEDWALL_
#define _CCRACKEDWALL_

#include "CBase.h"

class CPlayer;
class CCrackedWall : public CBase
{
	CCrackedWall* m_pConnected;
	bool m_bPlayerTouching;

	CPlayer*	m_pPlayer;
public:
	CCrackedWall();
	void Update(float fElapsedTime);
	void Render();
	void SetConnectedCrack(CCrackedWall* pConnected){m_pConnected = pConnected;}
	CCrackedWall* GetConnectedCrack(){return m_pConnected;}
	bool CheckCollision(CBase* pBase);

	void SetPlayer(CPlayer* pPlayer){m_pPlayer = pPlayer;}
};

#endif
